package com.zrrd.homework._0318_0324.h2;

/**
 * @author WanJl
 * @version 1.0
 * @title MyTest
 * @description
 * @create 2024/3/24
 */
public class MyTest {
    public static void main(String[] args) {
        F3 f=new F3();

    }
}
class F1{
    static {
        System.out.println("F1的静态初始化代码块...");
    }
    {
        System.out.println("F1的普通初始化代码块....");
    }

    public F1() {
        System.out.println("F1的构造方法....");
    }
}
class F2 extends F1{
    static {
        System.out.println("F2的静态初始化代码块...");
    }
    {
        System.out.println("F2的普通初始化代码块....");
    }
    public F2() {
        System.out.println("F2的构造方法....");
    }
}
class F3 extends F2{
    static {
        System.out.println("F3的静态初始化代码块...");
    }
    {
        System.out.println("F3的普通初始化代码块....");
    }
    public F3() {
        System.out.println("F3的构造方法....");
    }
}